# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=k55
pkgver=86.b3c4aa9
pkgrel=1
pkgdesc='Linux x86_64 Process Injection Utility.'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-backdoor' 'blackarch-exploitation')
url='https://github.com/josh0xA/K55'
license=('MIT')
makedepends=('git')
source=("$pkgname::git+https://github.com/josh0xA/K55.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  g++ -std=c++14 -I . -I ./src *.cc src/*.cc -march=native -w -o $pkgname
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

